package com.zking.entitys;

import static org.hamcrest.CoreMatchers.instanceOf;

public class MemberInfo {
	private static final String MemberInfo = null;
	private String memberCardId;
	private Integer memberPoint;
	private String phone;
	private String memberName;
	public String getMemberCardId() {
		return memberCardId;
	}
	public void setMemberCardId(String memberCardId) {
		this.memberCardId = memberCardId;
	}
	public Integer getMemberPoint() {
		return memberPoint;
	}
	public void setMemberPoint(Integer memberPoint) {
		this.memberPoint = memberPoint;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getMemberName() {
		return memberName;
	}
	public void setMemberName(String memberName) {
		this.memberName = memberName;
	}
	@Override
	public boolean equals(Object obj) {
		if(obj instanceof MemberInfo){
			MemberInfo obj1=(MemberInfo)obj;
			if(obj1.getMemberCardId().equals(this.getMemberCardId())){
				if(obj1.getMemberName()!=null){
					if(obj1.getMemberName().equals(this.getMemberName())){
						if(obj1.getPhone()!=null){
							if(obj1.getPhone().equals(this.getPhone())){
								return true;
							}
						}
					}
				}
			}
		}
		return false;
	}
	@Override
	public String toString() {
		return "MemberInfo [memberCardId=" + memberCardId + ", memberPoint=" + memberPoint + ", phone=" + phone
				+ ", memberName=" + memberName + "]";
	}
}
